-- GENERATED SPELL FOR [Grimtotem Raider] --


function spell0_7725(pUnit, Event) --@Berserker Stance,Self--
pUnit:FullCastSpellOnTarget(7366,pUnit)
pUnit:RegisterEvent('Sorts_7725', 692, 1)
end

function spell1_7725(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(845,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7725', 610, 1)
end

function spell2_7725(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7725', 2333, 1)
end

function Sorts_7725(pUnit, Event)
local choix_sorts_7725 = math.random(0, 2)
if choix_sorts_7725 == 0 then
pUnit:RegisterEvent('spell0_7725', 1, 1)
end
if choix_sorts_7725 == 1 then
pUnit:RegisterEvent('spell1_7725', 1, 1)
end
if choix_sorts_7725 == 2 then
pUnit:RegisterEvent('spell2_7725', 1, 1)
end
end

function mob7725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7725', math.random(1500, 3000), 1)
end

function mob7725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7725, 1, 'mob7725_Action')
RegisterUnitEvent(7725, 2, 'mob7725_Leave')
RegisterUnitEvent(7725, 3, 'mob7725_Kill')
RegisterUnitEvent(7725, 4, 'mob7725_Die')
